package cn.lanca.gof16_20._18observer.case3;

import java.util.EventObject;

/**
 * project name:<font size="1"><b>小芄健康数据运营平台</b></font><br>
 * file name:<font size="1"><b>DictTemplate</b></font><br>
 * description:<font size="1"><b>平台字典数据操作实现类</b></font><br>
 * company name:<font size="1"><b>小芄医药科技（成都）有限公司-研发中心</b></font><br>
 *
 * @author <a href="mail to: ">mei.hongliang<br>
 * @version 1.0.0<br>
 * @since 2022/3/2 16:28  <br>
 */
public class GirlEvent extends EventObject {

    /**
     * 是否生病
     */
    public boolean sick;
    /**
     * 饥饿
     */
    public boolean hunger;


    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public GirlEvent(Object source) {
        super(source);
    }

    public GirlEvent(Object source, boolean sick) {
        super(source);
        this.sick = sick;
    }

    public GirlEvent(Object source, boolean sick, boolean hunger) {
        super(source);
        this.sick = sick;
        this.hunger = hunger;
    }

    public boolean isSick() {
        return sick;
    }

    public void setSick(boolean sick) {
        this.sick = sick;
    }

    public boolean isHunger() {
        return hunger;
    }

    public void setHunger(boolean hunger) {
        this.hunger = hunger;
    }
}
